describe('UserInfo.coffee', ->
  beforeEach ->
    # do nothing

  describe('UserInfo class', ->
    it 'has no authority in default', ->
      target = new UserInfo()
      expect(target.is_authorized()).toBeFalsy()

    it 'has authority when it has user id', ->
      target = new UserInfo()
      target.session_id = 100
      expect(target.is_authorized()).toBeTruthy()
  )
)